package com.echartsdata.Entityimp;

import com.alibaba.fastjson2.JSONObject;
import com.echartsdata.Mapper.CareerMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author: 凉笙墨染
 * @CreateTime: 2024-09-26
 * 职业
 */

@Component
public class CareerMapperimp {
    @Resource
    private CareerMapper careerMapper;
    public String get_list() {
        System.out.println("看看职业数据返回的什么数据"+careerMapper.getCareers());
        JSONObject json = new JSONObject();
        json.put("data", careerMapper.getCareers());
        System.out.println("职业转换后的json数据是"+json.toString());
        return json.toString();

}
}
